package com.example.permission.myjbm.dao;

import android.view.View;
import android.widget.TextView;

/**
 * Created by JBMhaier on 2017/3/14.
 */

public class BaseObj {

    /**
     * 默认初始化header
     * @param headerRight
     * @param headerTitle
     * @param title
     * @param commit
     */
    public BaseObj(TextView headerRight, TextView headerTitle,String title,String commit){

        if(commit==null){
            headerRight.setVisibility(View.GONE);
        }else{
            headerRight.setText(commit);
        }
        headerTitle.setText(title);
    }


}
